package com.sdhs.paas.sdk.core.web;

import com.sdhs.paas.sdk.core.PaasBaseException;
import com.sdhs.paas.sdk.core.PaasBaseResponse;
import com.sdhs.paas.sdk.core.PaasDefaultObject;

public class PaasHttpServerErrorException extends PaasBaseException {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5954174047426827150L;
	PaasBaseResponse<PaasDefaultObject> httpErrorResponse = new PaasBaseResponse<PaasDefaultObject>();

	public PaasHttpServerErrorException() {
		super();
	}

	public PaasHttpServerErrorException(PaasBaseResponse<PaasDefaultObject> paasBaseResponse) {
		super(paasBaseResponse.getException_msg(), paasBaseResponse.getCode(), paasBaseResponse.getMsg());
		this.httpErrorResponse = paasBaseResponse;
	}

	public PaasBaseResponse<PaasDefaultObject> getHttpErrorResponse() {
		return httpErrorResponse;
	}

	public void setHttpErrorResponse(PaasBaseResponse<PaasDefaultObject> httpErrorResponse) {
		this.httpErrorResponse = httpErrorResponse;
	}


}
